{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}
<!--header stop-->
{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/headersearch.html"}
<!--header end-->

{literal}
<script type="text/javascript">
    /* 搜索按钮 */
    $('.ls-btn').click(function(){
        var keyword = $('input[name=keyword]').val();

        if(keyword == '') return;
        if(!$.trim(keyword)) {
            return;
        }
        searchKD(keyword);
    });

    function searchKD(keyword)
    {
        var url = "/supply/index/keyword/"+keyword;
        window.location = url;
    }
</script>
{/literal}

<div class="wp_fixed" style="top:48px;">
{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/headerMenu.html"}


<section class="wrap">

    <!--content stop-->

    <section class="list-filter">

        <!--<ul class="list-filter-m">-->
            <!--<li><a href="/supply/index"><span>默认</span></a></li>-->

            <!--<li><a href="/supply/index/orderByPrice/"><span class="sort">价格</span></a></li>-->

            <!--<li><a href="#"><span class="sort">数量</span></a></li>-->



            <!--<li><a href="#"><span>筛选</span></a></li>-->
        <!--</ul>-->

        <section class="hot-commodity">
            <div style="width:100%;" id="swiper-container3" class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <table class="ssw_tab">
                            <tr>
                                <th class="gb">公司名称</th>
                                <th class="gb">联系人</th>
                                <th class="gb">电话</th>
                                <th class="gb">更新时间</th>
                                <th class="gb"></th>
                            </tr>
                            {foreach from=$list key=key item=item}
                            <tr href="/supply/shoplist/id/{$item.id}">
                                <td><span class="ptm2">{$item.business_name}</span></td>
                                <td>{$item.contacts}</td>
                                <td class="orange">{$item.mobile}</td>
                                <td>{$item.update_time}</td>
                                <td><img src="/images/icons5.png" width="50%"/></td>
                            </tr>
                            {/foreach}

                        </table>
                    </div>

                </div>
            </div>
            <div class="page">
                {$links}
            </div>
        </section>
    </section>

    <!--content end-->
    

</section>
</div>
{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/footerlogin.html"}
{literal}
<script type="text/javascript">
    $(function(){
        $('.list-filter-c-category li').click(function(){
            oIndex = $(this).index();
            $('.categories').show();
            $('.layer-mask').show();
            $('.categories>ul').eq(oIndex).show().siblings().hide();
            $('.categories').animate({right:'0'},500);
            $('.wrap').animate({marginLeft:'-50%'},500);
        });

        $('.categories li').click(function(){
            var aText = $(this).text();
            var aIndex= $(this).parents('ul').attr('num');


            $('.categories').animate({right:'-50%'},500);
            $('.wrap').animate({marginLeft:'0'},500,function(){
                $('.list-filter-c-category li').eq(aIndex).find('span').text(aText);
                $('.layer-mask').hide();
                $('.categories').hide();
            });



        });

    });
    $(function(){
        $('.ssw_tab tr').not(":first").click(function(){
            window.location.href=$(this).attr('href');
        });
    });

    $(function(){


        var iNow = true;
        $('.list-filter-m .sort').click(function(){
            if(iNow){
                $(this).addClass('curr');
            }else{
                $(this).removeClass('curr');
            }
            iNow =!iNow;

        });

    });
</script>
{/literal}
{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/footerlogin.html"}

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}
